<?php

abstract class AdminController extends AController
{
	// ------------------------------------------------------------------------------------

	public $title = NULL;
	public $name = NULL;

	// ------------------------------------------------------------------------------------
	/**
	 * @return void
	 */
	public function actionSort()
	{
		AdminHelper::setOrder($this->name);
		$this->redirect($this->name);
	}

	// ------------------------------------------------------------------------------------
	/**
	 * @return void
	 */
	public function actionAdd()
	{
		$this->actionEdit();
	}

	// ------------------------------------------------------------------------------------
}